package cn.ito.zjgsu.domain.wrapper;

import java.util.List;

import com.alibaba.fastjson.JSON;

import cn.ito.zjgsu.domain.Note;
import cn.ito.zjgsu.domain.NoteType;

public class NoteWrapper {
	private Note note;
	private NoteType noteType;
	public Note getNote() {
		return note;
	}
	public void setNote(Note note) {
		this.note = note;
	}
	public NoteType getNoteType() {
		return noteType;
	}
	public void setNoteType(NoteType noteType) {
		this.noteType = noteType;
	}
	
	
	public String toJsonString(){
		return JSON.toJSONString(this);
	}
	
	public static String toJsonArrayString(List<NoteWrapper> noteWrappers){
		return JSON.toJSONString(noteWrappers);
	}
}
